﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;
using SDT.ServiceSystem;
using System.Threading;
using SDT.Libraries.Utilities;
using SDT.DataService.Services;
using SDT.DataService;


namespace SDT.CrawlSystem.MediaSrv
{
    public sealed partial class MDWorkUnit : WorkUnit
    {
        public enum Status
        {
            NA = 0, NEW = 1, SUCCESS = 2, INVALID = 3, ACCESS_DENY = 4, TIMEOUT = 5, NOT_FOUND = 6, 
            OFFLINE = 7
        };

        private Status FromString(string str)
        {
            switch (str)
            {
                case "NEW":
                    return Status.NEW;
                case "SUCCESS":
                    return Status.SUCCESS;
                case "INVALID":
                    return Status.INVALID;
                case "ACCESS_DENY":
                    return Status.ACCESS_DENY;
                case "TIMEOUT":
                    return Status.TIMEOUT;
                case "NOT_FOUND":
                    return Status.NOT_FOUND;
                case "OFFLINE":
                    return Status.OFFLINE;
                default:
                    return Status.NA;
            };
        }



    }
}
